import request from '@/util/request.js'

export const selectClassList = function (params = {}) {
  return request.get('/admin/class', {
    params,
  })
}

export const deleteClassList = function (params = {}) {
  return request.delete('/admin/class', {
    params,
  })
}

export const insertClass = function (data = {}) {
  return request.post('/admin/class', data)
}

export const updateClass = function (data = {}) {
  return request.put('/admin/class', data)
}
